package com.thinkgem.jeesite.modules.fantasy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.fantasy.dao.ItemTypeDao;
import com.thinkgem.jeesite.modules.fantasy.entity.ItemType;

@Service
public class ItemTypeService extends CrudService<ItemTypeDao, ItemType> {
	@Autowired
	ItemTypeDao itemTypeDao;

	public List<ItemType> initCommonItems() {
		List<ItemType> items = itemTypeDao.initCommonItems();
		return items;
	}

	public ItemType getItemTypeById(String typeid) {
		return itemTypeDao.getItemTypeById(typeid);
	}
}
